package com.zjxf.repository;

import com.zjxf.base.bean.po.CmsSchoolTutor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

/**
 * 长征大学导师
 *
 * @author ZhangWei
 * @date 2021/4/7/007 10:29
 */
public interface CmsSchoolTutorRepository extends JpaRepository<CmsSchoolTutor, Long>, JpaSpecificationExecutor<CmsSchoolTutor> {

    /**
     * 根据id与删除状态查找
     * @param id
     * @param delteState
     * @return
     */
    Optional<CmsSchoolTutor> findByIdAndDeleteState(Long id, Integer delteState);
}
